<template>
  <div class="dashboard-container">
    <div class="content-wrapper">
      <!-- 背景装饰 -->
      <div class="background-decoration">
        <div class="gradient-overlay"></div>
        <div class="floating-circles">
          <div class="circle" v-for="i in 6" :key="i"></div>
        </div>
        <div class="grid-pattern"></div>
      </div>

      <!-- 主要内容区 -->
      <div class="main-content">
        <!-- 标题区域 -->
        <div class="header-section">
          <h1>旅游管理系统</h1>
          <p>让旅游管理更简单 · 更高效 · 更智能</p>
        </div>

        <!-- 卡片展示区 -->
        <div class="cards-section">
          <div class="card" v-for="(card, index) in showcaseCards" :key="index">
            <div class="card-content">
              <el-icon class="card-icon"><component :is="card.icon" /></el-icon>
              <h3>{{ card.title }}</h3>
              <p>{{ card.description }}</p>
            </div>
            <div class="card-hover-effect"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import {
  Location, Ship, Sunny, Calendar,
  Ticket, Setting
} from '@element-plus/icons-vue'

const showcaseCards = [
  {
    icon: 'Location',
    title: '探索目的地',
    description: '发现令人惊叹的旅游胜地'
  },
  {
    icon: 'Ship',
    title: '精选路线',
    description: '精心规划的完美行程'
  },
  {
    icon: 'Sunny',
    title: '度假体验',
    description: '为您打造难忘的旅行回忆'
  },
  {
    icon: 'Calendar',
    title: '智能规划',
    description: '便捷高效的行程安排'
  },
  {
    icon: 'Ticket',
    title: '特色服务',
    description: '独特的旅行体验'
  },
  {
    icon: 'Setting',
    title: '专业保障',
    description: '全方位的旅行保障'
  }
]
</script>

<style scoped>
.dashboard-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: #f0f2f5;
}

.content-wrapper {
  min-height: 100%;
  position: relative;
}

/* 背景装饰 */
.background-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gradient-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a2a6c 0%, #b21f1f 50%, #fdbb2d 100%);
  opacity: 0.9;
}

.floating-circles .circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 20s infinite ease-in-out;
}

.floating-circles .circle:nth-child(1) { width: 400px; height: 400px; top: -15%; right: -10%; animation-delay: 0s; }
.floating-circles .circle:nth-child(2) { width: 300px; height: 300px; top: 20%; left: -8%; animation-delay: -4s; }
.floating-circles .circle:nth-child(3) { width: 250px; height: 250px; bottom: 10%; right: 15%; animation-delay: -8s; }
.floating-circles .circle:nth-child(4) { width: 200px; height: 200px; bottom: 20%; left: 25%; animation-delay: -12s; }
.floating-circles .circle:nth-child(5) { width: 350px; height: 350px; top: 40%; right: 20%; animation-delay: -16s; }
.floating-circles .circle:nth-child(6) { width: 280px; height: 280px; top: 60%; left: 15%; animation-delay: -20s; }

.grid-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* 主要内容区 */
.main-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  min-height: 100%;
}

.header-section {
  text-align: center;
  margin-bottom: 60px;
}

.header-section h1 {
  font-size: 4rem;
  color: #ffffff;
  margin-bottom: 24px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-section p {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* 卡片区域 */
.cards-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1600px;
  margin: 0 auto;
  padding-bottom: 60px;
}

@media (max-width: 1600px) {
  .cards-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  aspect-ratio: 4/3;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.card-icon {
  font-size: 64px;
  color: #ffffff;
  margin-bottom: 24px;
}

.card h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  line-height: 1.6;
}

.card-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.card:hover .card-hover-effect {
  opacity: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
</style> 